package com.san.hkhospital.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.san.hkhospital.entity.SdApt;
import com.san.hkhospital.mapper.SdAptMapper;
import com.san.hkhospital.entity.SdAptExample;
import com.san.hkhospital.service.SdAptService;
/**
 * ClassName:SdAptServiceImpl
 * PackageName:com.san.hkhospital.service.impl
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/13 14:38
 * 
 */
 
 
@Service
public class SdAptServiceImpl implements SdAptService{

    @Resource
    private SdAptMapper sdAptMapper;

    @Override
    public long countByExample(SdAptExample example) {
        return sdAptMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(SdAptExample example) {
        return sdAptMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer sdId,Integer aptId) {
        return sdAptMapper.deleteByPrimaryKey(sdId,aptId);
    }

    @Override
    public int insert(SdApt record) {
        return sdAptMapper.insert(record);
    }

    @Override
    public int insertSelective(SdApt record) {
        return sdAptMapper.insertSelective(record);
    }

    @Override
    public List<SdApt> selectByExample(SdAptExample example) {
        return sdAptMapper.selectByExample(example);
    }

    @Override
    public int updateByExampleSelective(SdApt record,SdAptExample example) {
        return sdAptMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(SdApt record,SdAptExample example) {
        return sdAptMapper.updateByExample(record,example);
    }

}
